WriteAxisTargetVelocity
設定軸的目標速度。
語法
KsError WriteAxisTargetVelocity(
int Index,
int Value
);
參數
Index:軸的索引。索引以 0 為起始;別名將影響此參數。
Value:每秒軸速度(使用者單位)。
回傳值
若此函式執行成功,會回傳 errNoError
,否則會傳回錯誤碼。如需更多有關錯誤碼的資訊,請參閱 KsError 清單。
備註
此函式只能在手動模式中使用,請見 McControlMode 類型。
可用的 EtherCAT 狀態
ecatOP
範例
複製
nRet = WriteAxisTargetVelocity(0, 100);
使用需求
RT | Win32 | |
---|---|---|
最低支援版本 | 4.0 | 4.0 |
標頭檔 | ksapi.h | ksapi.h |
程式庫 | KsApi_Rtss.lib | KsApi.lib |
參見